package 简单工厂;

public class SimpleFactory_Water {
    public Water getWater(String brand) {
        if(brand.equals("冰露")) {
            return new IceDew();
        }
        if(brand.equals("农夫山泉")) {
            return new NongFu();
        }
        if(brand.equals("怡宝")) {
            return new YiBao();
        }
        return null;
    }

}
